package top.ffhome.system.mapper;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import top.ffhome.common.mapper.BaseMapper;
import top.ffhome.system.entity.SysMenu;
import top.ffhome.system.entity.SysUser;

public interface SysUserMapper extends BaseMapper<SysUser> {
	Set<String> selectPermsByUserId(Long userId);

	List<SysMenu> selectRoutersByUserId(Long userId);

	List<SysMenu> selectMenusByUserId(Long userId);

	int deleteRoleRelation(Long id);

	int insertRoleRelation(@Param("userId") Long userId, @Param("roleIds") Set<Long> roleIds);
}
